import './assets/main.less'

import { createApp } from 'vue'
import pinia from '@/stores/index.js'

import App from './App.vue'
import router from './router'

import Toastity, { toast } from 'vue3-toastify'
import 'vue3-toastify/dist/index.css'

import 'viewerjs/dist/viewer.css'
import VueViewer from 'v-viewer'

const app = createApp(App)

app.use(pinia)
app.use(router)

app.use(Toastity, {
  autoClose: 1500,
  position: 'top-center',
  hideProgressBar: true,
  theme: 'dark',
  closeButton: false,
  closeOnClick: false,
  containerClassName: 'toast-container',
  transition: toast.TRANSITIONS.ZOOM
})

app.use(VueViewer)

app.mount('#app')
